{extend name="../../common/view/public/base" /}

{block name="title"}品牌{/block}

{block name="head"}<link rel="stylesheet" type="text/css" href="static/admin/css/{:parse_name(request()->controller())}.css?{:staticCache()}">
<script type="text/javascript">
CONFIG['PAGE_SIZE'] = {:config('app.page_size')};
CONFIG['TOTAL'] = {$Total};
CONFIG['LIST'] = window.location;
CONFIG['UPLOAD_DIR'] = '{:config("system.qiniu_domain")}' || '{:config("dir.upload")}';
CONFIG['INDEX'] = '{:url("/".parse_name(request()->controller())."/index")}';
CONFIG['ADD'] = '{:url("/".parse_name(request()->controller())."/add")}';
CONFIG['ADD_DO'] = '{:url("/".parse_name(request()->controller())."/add",["action"=>"do"])}';
CONFIG['MULTI'] = '{:url("/".parse_name(request()->controller())."/multi")}';
CONFIG['UPDATE'] = '{:url("/".parse_name(request()->controller())."/update")}';
CONFIG['UPDATE_DO'] = '{:url("/".parse_name(request()->controller())."/update",["action"=>"do"])}';
CONFIG['DELETE'] = '{:url("/".parse_name(request()->controller())."/delete")}';
CONFIG['IS_VIEW'] = '{:url("/".parse_name(request()->controller())."/isView")}';
CONFIG['IS_DEFAULT'] = '{:url("/".parse_name(request()->controller())."/isDefault")}';
CONFIG['SORT'] = '{:url("/".parse_name(request()->controller())."/sort")}';
</script>{/block}

{block name="main"}
<div class="tool advance">
  <div class="row1">
    <h2>品牌管理</h2>
  
    <input type="hidden" name="ids">
  
    <div class="button">
      {if condition="isPermission('add')"}<input type="button" value="添加品牌" class="button add">{/if}
      {if condition="isPermission('multi')"}<input type="button" value="批量添加品牌" class="button multi">{/if}
      {if condition="isPermission('delete')"}<input type="button" value="批量删除" class="button disabled must_select delete" disabled>{/if}
    </div>

    <p class="clear"></p>
  </div>

  <form method="get" action="" class="search layui-form" onsubmit="return false;">
    <label>关 键 词：<div class="search-text"><input type="text" name="keyword" value="{:input('get.keyword')}" class="text"><span class="iconfont icon-search"></span></div></label>
    <label>品牌分类：<select lay-filter="category_id" lay-search><option value="0">不限</option>{$Category}</select></label>
    <label class="wxxcx_id">微信小程序访问量：<select lay-filter="wxxcx_id" lay-search><option value="0">不限</option>{$Wxxcx}</select></label>
    <label class="manager_id">分销商访问量：<select lay-filter="manager_id" lay-search><option value="0">不限</option>{$Manager}</select></label>
  </form>
</div>

<div class="list">
  {if condition="$Total>0"}
  <table class="{if condition="isPermission('delete')"}left-fix{/if} right-fix">
    <thead>
      <tr class="row1">{if condition="isPermission('delete')"}<th style="width:60px;" rowspan="2"><div class="check-box"><label><input type="checkbox" class="all">全选</label></div></th>{/if}<th style="width:250px;" rowspan="2">品牌名称</th><th style="width:150px;" rowspan="2">品牌logo</th><th style="width:200px;" rowspan="2">品牌分类</th>{if condition="isPermission('sort')"}<th style="width:100px;" rowspan="2"><input type="button" value="排序" class="button sort"></th>{/if}{if condition="isPermission('isView')"}<th style="width:80px;" rowspan="2">是否上架</th>{/if}<th style="width:160px;" rowspan="2">添加时间</th><th colspan="2">访问量</th><th style="width:120px;" rowspan="2">操作</th></tr>
      <tr><th style="width:80px;">网页端</th><th style="width:80px;">小程序</th></tr>
    </thead>
    <tbody class="items"></tbody>
  </table>

  <div class="pagination"><ul></ul></div>
  {else/}
  <p class="nothing"></p>
  {/if}
</div>
{/block}